import random

VERSION = "4.29.0"

APP_TITLE = F"Grass批量助手-{VERSION}"

TABLE_COLUMNS = (
    {"title": "账户号", "width": 150},
    {"title": "设备ID", "width": 150},
    {"title": "代理", "width": 100},
    {"title": "最近活跃时间", "width": 150},
    {"title": "连接状态", "width": 200},
)
    # {"title": "账户号", "width": 80},
    # {"title": "设备ID", "width": 90},
    # {"title": "代理", "width": 100},
    # {"title": "真实IP", "width": 100},
    # {"title": "最近活跃时间", "width": 150},
    # {"title": "连接状态", "width":30},
    # {"title": "描述", "width": 200}
#, "设备ID", "代理ip", "更新时间", "连接状态"

MAX_LOG_TEXT = 1000

PROXY_CONFIG_FILE_NAME = "data/proxy.txt"

ACCOUNT_USER_ID_FILE_NAME = "data/account.txt"

ACCOUNT_DEVICE_ID_FILE_NAME = "data/device.txt"

GRASS_LOCK_FILE_NAME = "data/grass.lock"

HEALTH_CHECK_INTERVAL = 300
PING_CHECK_INTERVAL = 60

WSS_SERVER_URL = "wss://proxy2.wynd.network:4650/"

INVALID_PROXY_EXCEPTION = [
    # "authentication failure",
    # "couldn't connect to proxy"
]

DEFAULT_USER_AGENT_LIST = [
    "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
]

DEFAULT_USER_AGENT = random.choice(DEFAULT_USER_AGENT_LIST)

DEFAULT_PROXY_LIMIT = 200

GRASS_CLIENT_AES_INDEX = "D5kE9pyzPnnPWKJjp7ApGTDXW3rdCAsr"

GRASS_CLIENT_CONFIG = None

GEASS_CLIENT_TEST_KEY = "b505267626de40e6ab0eeef17139ca8d"

#系统异常，无法启动，请联系QQ:249671015，或微信：suerpamx
ERROR_TIPS = "系统异常，无法启动！"